import request from '@/utils/request'

//查询评论列表
export const queryPageApi = (content, userId, strategyId, parentId, pageNum, pageSize) => request.get(`/admin/comment/page?content=${content}&userId=${userId}&strategyId=${strategyId}&parentId=${parentId}&pageNum=${pageNum}&pageSize=${pageSize}`)
//添加评论
export const addCommentApi = (data) => request.post('/admin/comment', data)
//根据ID查询评论信息
export const queryInfoApi = (id) => request.get(`/admin/comment/${id}`)
//修改评论信息
export const updateCommentApi = (data) => request.put('/admin/comment', data)
//删除评论
export const deleteCommentApi = (ids) => request.delete(`/admin/comment?ids=${ids}`)